<?
setlocale(LC_ALL, 'ru_RU.UTF-8');
session_start();
require_once($_SERVER['DOCUMENT_ROOT']."/cms/classes/export.php");
header("Content-Type: text/html; charset=".DATABASE_CHARSET);

$smarty = new Smarty;
$smarty->template_dir=$_SERVER['DOCUMENT_ROOT']."/_templates";
$smarty->compile_dir=$_SERVER['DOCUMENT_ROOT']."/_cache";
function microtime_float()
{
	list($usec, $sec) = explode(" ", microtime());
	return ((float)$usec + (float)$sec);
}


$time = microtime_float();
$core =& CmsCore::Instance();
$core->CheckPage();
$core->GeneratePage();
$core->ShowPage();

$time = microtime_float() - $time;

////////////////////////////////////////////////////////
?>